
import request from '@/utils/request'

export default {

  //获取当前浏览数
  getViewNum() {
    return request({
      url: '/itservice/view/getViewNum',
      method: 'get'
    })
  },

  //增加浏览数
  addViewNum(viewNum) {
    return request({
      url: `/itservice/view/addViewNum/${viewNum}`,
      method: 'get'
    })
  },

  // 写入网页访问记录
  addRecord() {
    return request({
      url: '/itservice/viewrecord/addRecord',
      method: 'get'
    })
  }

}
